package com.example.chain.component.planB;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author shixiaodong
 * @date 2022-06-01
 */
@Service("time2")
@Slf4j
public class SendTimeImpl implements DecisionService {
    @Override
    public void makeDecision(AbstractDecision abstractDecision) {
        log.info("time000");
        try {
            Thread.sleep(200);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        abstractDecision.doNext();
    }
}
